<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>


<html:html>
<head>
	<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/css/stkissue2.css" />
	
</head>


<body><br />
	<center>
		<div>			
			<form action="/ittl/stklocation.do?mode=show" method="post" name="formSearch">							
				ค้นหา Code/Name :<input type="text" name="item" value="${item }" />
				<label>แสดงผล </label>
				<select name="maxResults" >
					<option value="0">ดูทั้งหมด</option>
					<option value="50" selected="selected">50 รายการ</option>
					<option value="100">100 รายการ</option>
					<option value="200">200 รายการ</option>
					<option value="500">500 รายการ</option>												
				</select>				
				<input type="submit" value="search">		
			</form>						
		</div>
		
		<div id="tblShow" >
			<display:table  name="${results}" pagesize="50"
							requestURI=""										 
							id="row" >
				<display:column title="No." style="width: 1%; text-align: center" >
					<c:out value="${row_rowNum }" />
				</display:column>												
				<display:column property="bcItem.code" title="Code" style="width: 4%; text-align: center" sortable="true"/>				
				<display:column property="bcItem.name1" title="Name" style="width: 15%" sortable="true"/>				
				<display:column property="qty" format="{0,number, #,###} " style="width: 2%; text-align: right"  />
								
			</display:table>
		</div>	 
	</center>
					

<input type="hidden" value="${monthFind }" id="monthFindId">
<script type="text/javascript">

	var item2 = document.getElementById("monthFindId").value;	
	document.formSearch.monthFind[item2-1].selected=true;
	
</script>



</body>

</html:html>